<template>
  <div class="app">
    <div class="left-box">
      <router-link active-class="active" to="/work1">作业1：倒三角</router-link>
      <router-link active-class="active" to="/work2">作业2：购物车</router-link>
    </div>

    <router-view></router-view>

  </div>
</template>
<script>
export default {}
</script>
<style lang="scss" scoped>

.active {
  color: white;
  background-color: aquamarine;
}

.app {
  width: 100%;
  height: 1000px;
  display: flex;
  // justify-content: space-between;
  
}
.left-box{
  width: 15%;
  height: 1000px;
  display: flex;
  flex-direction: column;
  text-align: center;
  margin-right: 20px;
}
a{
  text-decoration: none;
  width: 100%;
  height: 20px;
  line-height: 20px;
  // border: 1px solid black;
  color: black;
  font-size: large;
  background-color: gray;
}
router-view{
  width: 75%;
  height: 1000px;
  
}
</style>
